home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / WebObjects / WOF / WOF_1_0_Solaris / WebObjectsInstall < prev   
Encoding:
Text File  |  1996-02-28  |  1.1 KB  |  51 lines

  1. #!/bin/sh
  2. #
  3. # Copyright (c) 199-1995 NeXT Computer, Inc.
  4. # All Rights Reserved
  5. #
  6.  
  7. WOFDIR=`pwd`
  8. WOFENTTARZ=WebObjectsEnterprise.TAR.Z
  9. WOFPROTARZ=WebObjectsPro.TAR.Z
  10. WOFTARZ=WebObjects.TAR.Z
  11. clear
  12. echo ""
  13. echo "Welcome to the WebObjects installation program!"
  14. echo ""
  15.  
  16. echo "Are you sure you want to install? [yn]\c"
  17. read answer
  18.  
  19. case $answer in
  20.   y | Y | YES | yes | Yes)
  21.     if [  -f $WOFDIR/$WOFENTTARZ  ]; then
  22.     WEBREL="WebObjects Enterprise"
  23.     TARFILE=$WOFDIR/$WOFENTTARZ
  24.     elif [ -f $WOFDIR/$WOFPROTARZ  ]; then
  25.     WEBREL="WebObjects Pro"
  26.     TARFILE=$WOFDIR/$WOFPROTARZ
  27.     elif [ -f $WOFDIR/$WOFTARZ  ]; then
  28.     WEBREL="WebObjects"
  29.     TARFILE=$WOFDIR/$WOFTARZ
  30.     else
  31.     echo "I was unable to find the WebObjects release."
  32.     echo "Please \`cd' to the installation directory and try again."
  33.     echo ""
  34.     exit 1
  35.     fi
  36.     echo "Begining installation of ${WEBREL} ..."
  37.     (cd / ; $WOFDIR/gnutar --uncompress -x -v -f  ${TARFILE} )
  38.     echo ""
  39.     echo ""
  40.     echo "${WEBREL} has been installed."
  41.     echo ""
  42.     ;;
  43.   *)
  44.     echo ""
  45.     echo "No WebObjects installation performed."
  46.     echo ""
  47.     ;;
  48. esac
  49. exit 0
  50.  
  51.